import Index from "../pages/Index.vue";
import TeamPage from "../pages/TeamPage.vue";
import UserPage from "../pages/UserPage.vue";
import SearchPage from "../pages/SearchPage.vue";
import UserEditPage from "../pages/UserEditPage.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import UserLoginPage from "../pages/UserLoginPage.vue";
import TeamAddPage from "../pages/TeamAddPage.vue";
import TeamUpdatePage from '../pages/TeamUpdatePage.vue'
import UserUpdatePage from '../pages/UserUpdatePage.vue'
import UserTeamCreatePage from '../pages/UserTeamCreatePage.vue'
import UserTeamJoinPage from '../pages/UserTeamJoinPage.vue'

const routes = [
    {path: '/',title:'伙伴匹配', component: Index},
    {path: '/team',title:'队伍', component: TeamPage },
    {path: '/user',title:'个人',component: UserPage},
    {path: '/search',title:'找队伍',component: SearchPage},
    {path: '/user/edit',title:'用户编辑',component: UserEditPage},
    {path: '/user/list',title:'伙伴',component: SearchResultPage},
    {path: '/user/login',title: '用户登录',component: UserLoginPage},
    {path: '/team/add',title:'队伍创建',component: TeamAddPage},
    {path: '/team/update',title:'队伍更新',component: TeamUpdatePage},
    {path: '/user/update',title:'用户信息',component: UserUpdatePage},
    {path: '/team/creatTeam',title:'伙伴匹配',component: UserTeamCreatePage},
    {path: '/team/joinTeam',title:'伙伴匹配',component: UserTeamJoinPage}
]

//导出
export default routes